#{extends 'mainFMPA.html' /} #{set title:'Liste des FMPAs' /}
#{if isFMPA}
<div class="post">
	<div class="post">
		<h2 class="post-title">Liste des FMPAs</h2>
		<br>
		<table cellpadding="0" cellspacing="0" border="0" class="display">
			<thead>
				<tr>
					<th>CIS</th>
					<th>Date</th>
					<th>Dur&eacute;e</th>
					<th>Th&eacute;matique</th>
					<th>Th&egrave;me</th>
					<th>Nombre de participants</th>
					<th>Etat</th>
					<th></th>
				</tr>
			</thead>

			<tbody>
				#{list items:fmpas, as:'fmpa' }
				<tr>
					<td>${fmpa.cis}</td>

					<td>${fmpa.date.format('dd MMMM yyyy', 'fr')}</td>

					<td>${fmpa.duree.duree}</td>

					<td>${fmpa.thematique}</td>

					<td>${fmpa.sousThematique}</td>

					<td>${fmpa.getEffectif()}</td>

					#{if fmpa.etat.id_etatfmpa.equals("INVAL")}<td class="attention">#{/if}
					#{else}<td>#{/else}${fmpa.etat}</td>
					
					<td><a href="@{FMPAs.detailFMPA(fmpa.id)}">D&eacute;tails</a></td>

				</tr>


				#{/list}
			</tbody>
		</table>
	</div>
</div>
#{/if} #{else}
<div class="empty">pas de fmpa pr&eacute;vue.</div>
#{/else}
